home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Outils / Adobe-Air / adobe-air_13.exe / [0] / setup.swf / scripts / mx / effects / Zoom.as < prev   
Text File  |  2014-03-27  |  2KB  |  58 lines

  1. package mx.effects
  2. {
  3.    import mx.core.mx_internal;
  4.    import mx.effects.effectClasses.ZoomInstance;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class Zoom extends TweenEffect
  9.    {
  10.       
  11.       mx_internal static const VERSION:String = "3.0.0.0";
  12.       
  13.       private static var AFFECTED_PROPERTIES:Array = ["scaleX","scaleY","x","y","width","height"];
  14.        
  15.       
  16.       public var zoomHeightFrom:Number;
  17.       
  18.       public var zoomWidthTo:Number;
  19.       
  20.       public var originX:Number;
  21.       
  22.       public var zoomHeightTo:Number;
  23.       
  24.       public var originY:Number;
  25.       
  26.       public var captureRollEvents:Boolean;
  27.       
  28.       public var zoomWidthFrom:Number;
  29.       
  30.       public function Zoom(param1:Object = null)
  31.       {
  32.          super(param1);
  33.          instanceClass = ZoomInstance;
  34.          applyActualDimensions = false;
  35.          relevantProperties = ["scaleX","scaleY","width","height","visible"];
  36.       }
  37.       
  38.       override protected function initInstance(param1:IEffectInstance) : void
  39.       {
  40.          var _loc2_:ZoomInstance = null;
  41.          super.initInstance(param1);
  42.          _loc2_ = ZoomInstance(param1);
  43.          _loc2_.zoomWidthFrom = zoomWidthFrom;
  44.          _loc2_.zoomWidthTo = zoomWidthTo;
  45.          _loc2_.zoomHeightFrom = zoomHeightFrom;
  46.          _loc2_.zoomHeightTo = zoomHeightTo;
  47.          _loc2_.originX = originX;
  48.          _loc2_.originY = originY;
  49.          _loc2_.captureRollEvents = captureRollEvents;
  50.       }
  51.       
  52.       override public function getAffectedProperties() : Array
  53.       {
  54.          return AFFECTED_PROPERTIES;
  55.       }
  56.    }
  57. }
  58.